package com.lora.entity;

import com.acooly.core.common.domain.AbstractEntity;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * 门磁感器数据 Entity
 *
 * @author lwt
 * Date: 2019-09-16
 */
@Data
@Entity
@Table(name = "gate_mahnetism")
public class GateMahnetism   extends AbstractEntity {
    /**
     * equipmentId
     */
    @Size(max = 36)
    private String equipmentid;

    /**
     * 数据长度
     */
    private String datalength;
    /**
     * dataString
     */
    @Size(max = 128)
    private String datastring;

    /**
     * 设备状态
     */
    private String state;

    /**
     * 传感器状态
     */
    private String sensorstate;
    /**
     * 电池状态
     */
    private String batterystate;

    /**
     * 防拆状态
     */
    private String tamperstate;

    /**
     * 按键状态
     */
    private String keystate;
    /**
     * crc16高字节
     */
    private String crchighbytes;
    /**
     * crc16低字节
     */
    private String crclowhbytes;

    /**
     * 帧尾
     */
    private String frametail;

    private boolean alarmFlag = false;
}
